.home {
  height: calc(100% - 50px);
  background-color: #f4f4f4;
  &-head {
    width: 100%;
    display: flex;
    height: 44px;
    line-height: 44px;
    padding: 0 4px;
    box-sizing: border-box;
    background-color: #fff;
    position: absolute;
    top:0;
    z-index: 1000;

    .van-search {
      padding: 0;
      height: 100%;
      background-color: transparent;
      .van-search__content {
        background-color: transparent;
      }
    }
  }

  .main {
    margin-top: 44px;
    .banner-img {
      width: 100%;
      height: auto;
    }
    ::v-deep .van-swipe__indicator {
      background-color: #ccc;
      opacity: 1;
    }

    .container {
      background-color: #f4f4f4;
    }

    .channel {
      display: flex;
      width: 100%;
      text-align: center;
      padding: 8px 0;
      background-color: #fff;
      box-sizing: border-box;
      div {
        flex: 1;
        img {
          width: 30px;
          height: 30px;
          margin-bottom: 16px;
        }
      }
    }
    // 品牌制造商直供
    .brandList {
      margin-top: 8px;
      background-color: #fff;
      .heade {
        padding: 20px 0;
        text-align: center;
      }
      .content {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        padding: 0 4px;
        .brand-item {
          position: relative;
          width: 178px;
          height: 116px;
          margin-bottom: 4px;

          img {
            width: 100%;
            height: 100%;
          }

          .info {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            p {
              margin: 12px 4px;
            }
          }
        }
      }
    }
    // 新品首发
    .newGoods {
      .head {
        height: 122px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 8px;
        background-image: url("../../assets/images/bgnew.png");
        &-content {
          width: 50%;
          text-align: center;
          p {
            margin: 8px auto;
            padding: 4px;
            font-size: 16px;
            color: #8c9bae;
            &:last-child {
              width: 90px;
              background-color: #d8e4f0;
              font-size: 12px;
            }
          }
        }
      }
      .content {
        width: 100%;
        background-color: #fff;
        ul {
          width: 100%;
          white-space: nowrap;
          overflow: auto;
          li {
            width: 140px;
            height: 208px;
            display: inline-block;
            padding: 10px 20px;
            border-right: 1px solid #f4f4f4;
            img {
              width: 140px;
              height: 140px;
            }
            p {
              margin-bottom: 16px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
            .name {
              font-size: 15px;
              font-weight: bold;
            }
            .brief {
              color: #8a8a8a;
            }
            .price {
              color: #9c3232;
            }
          }
        }
      }
    }
    // 热品推荐
    .hotGoods {
      .head {
        background-image: url("../../assets/images/bgtopic.png");
      }
    }
    // 精选专题
    .topicList {
      background-color: #fff;
      margin-top: 8px;
      .head {
        height: 64px;
        text-align: center;
        display: flex;
        justify-content: center;
        align-items: center;
        &-content {
          width: 50%;
          text-align: center;
          img {
            width: 16px;
            height: 16px;
            margin-left: 8px;
            vertical-align: middle;
          }
        }
      }
      .content {
        width: 100%;
        background-color: #fff;
        ul {
          width: 100%;
          white-space: nowrap;
          overflow: auto;
          li {
            width: 287px;
            height: 250px;
            display: inline-block;
            margin-left: 12px;
            &:last-child {
              margin-right: 12px;
            }
            img {
              width: 287px;
              height: 162px;
              border-radius: 8px;
            }

            .title_price {
              width: 100%;
              display: flex;
              justify-content: space-between;
              .title {
                font-size: 15px;
                font-weight: bold;
              }
              .price {
                color: #9c3232;
              }
            }

            .subtitle {
              color: #8a8a8a;
            }
            p {
              margin-bottom: 16px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
            }
          }
        }
      }
    }
    // 分类列表
    .newCategoryList {
      .list {
        padding: 0 4px;
        .head {
          height: 48px;
          line-height: 48px;
          text-align: center;
        }
        .content {
          display: flex;
          justify-content: space-between;
          flex-wrap: wrap;
          li {
            width: 180px;
            height: 214px;
            margin-bottom: 8px;
            padding: 8px;
            box-sizing: border-box;
            text-align: center;
            background-color: #fff;

            img {
              width: 130px;
              height: 130px;
            }
            p {
              margin-bottom: 16px;
              overflow: hidden;
              white-space: nowrap;
              text-overflow: ellipsis;
              text-align: left;
              &:last-child {
                margin-bottom: 0;
              }
            }
            .name {
              font-size: 12px;
              margin-top: 8px;
            }
            .price {
              color: #9c3232;
            }
          }

          .more {
            p {
              margin-top: 50px;
              text-align: center;
              font-size: 16px;
            }
            img {
              width: 37px;
              height: 37px;
            }
          }
        }
      }
    }
  }
}
